class Mall < ActiveRecord::Base
  attr_accessible :name, :description, :site_url, :logo, :delete_logo
  has_many :products, :inverse_of => :mall

  attr_accessible :product_ids

  has_attached_file :logo, :styles => { :medium => "300x300>", :thumb => "100x100>" }
  attr_accessor :delete_logo
  before_validation { self.logo.clear if self.delete_logo == '1' }
end
